package com.mindao.app.ued.controller;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.RequestMapping;

import com.mindao.app.common.spring.controller.BaseController;
import com.mindao.app.ued.model.Tpltb3;

@Controller
@RequestMapping("/ued/tpltb3uuid")
public class Tpltb3UuidControler extends BaseController<Tpltb3> {
	
	private static Logger log = LoggerFactory.getLogger(Tpltb3UuidControler.class);
	
	private static final DateFormat SIMPLE_DATE_FORMATER = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
 
	
	/** 初始化文本日期数据进行绑定 */
	@InitBinder
	public void initBinder(WebDataBinder binder) {
		binder.registerCustomEditor(Date.class, "deadline", new CustomDateEditor(SIMPLE_DATE_FORMATER, Boolean.TRUE));
		binder.registerCustomEditor(Date.class, "createTime", new CustomDateEditor(SIMPLE_DATE_FORMATER, Boolean.TRUE));
	}

	
}
